package com.qfmy.model.entity.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity.address
 * @date 2025/10/31
 * @description 用户地址表实体类（映射数据库address表）
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Address {

    @Schema(description = "地址ID（主键，自增）")
    private Integer id;

    @Schema(description = "关联用户的ID（关联user表的user_id）")
    private Long userId;

    @Schema(description = "省")
    private String province;

    @Schema(description = "市")
    private String city;

    @Schema(description = "区")
    private String district;

    @Schema(description = "邮政编码（可为空）")
    private String zipCode;

    @Schema(description = "创建时间（默认当前时间）")
    private Date createTime;

    @Schema(description = "更新时间（默认当前时间，数据更新时自动刷新）")
    private Date updateTime;
}